package com.restaurant.application.goodscategory;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.View;
import com.nebutown.commonunits.utils.DateTimeUtils;
import com.restaurant.application.categorylist.CategoryList;
import com.restaurant.application.goodscategory.support.AbstractGoodsCategory;
import com.restaurant.application.goodscategory.support.CategoryData;

public class GoodsCategoryImpl extends AbstractGoodsCategory {


    @Override
    public View getFullView() {
        return null;
    }

    @Override
    public View getViewLead(ViewSpec viewSpec) {
        return null;
    }

    @Override
    public void init(CategoryData data) {
        data.withCreateTime(DateTimeUtils.getCurrentMillisecond());
        getSingleton(CategoryList.class).increase();
        data.withRecordId(getSingleton(CategoryList.class).getRecordId());
        setData(data);
    }

    @Override
    public CategoryData getCategoryData() {
        return getData().duplicate();
    }
}
